package com.lms.service.impl;

import com.lms.mapper.BookMapper;
import com.lms.pojo.Book;
import com.lms.service.BookService;

import java.util.List;

/**
 * @author: gfk
 * @create: 2021/7/13
 * @Description:
 * @FileName: BookMapperServiceImpl
 * @History:
 * @自定义内容：
 **/
public class BookServiceImpl implements BookService {

    private BookMapper bookMapper;

    public void setBookMapper(BookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }

    public int deleteByPrimaryKey(Integer bookId) {
        return bookMapper.deleteByPrimaryKey(bookId);
    }

    public int insert(Book record) {
        return bookMapper.insert(record);
    }

    public int insertSelective(Book record) {
        return bookMapper.insertSelective(record);
    }

    public Book selectByPrimaryKey(Integer bookId) {
        return bookMapper.selectByPrimaryKey(bookId);
    }

    public int updateByPrimaryKeySelective(Book record) {
        return bookMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Book record) {
        return bookMapper.updateByPrimaryKey(record);
    }

    public List<Book> selectAllBook() {
        return bookMapper.selectAllBook();
    }
}
